using System.Data.Linq;
using System.Data.Linq.Mapping;
using WebExam.Core.Common;

namespace WebExam.Core.Repository
{
    [Database(Name = "dbExam")]
    public partial class RepositoryContext:DataContext
    {
        private static System.Data.Linq.Mapping.MappingSource mappingSource = new AttributeMappingSource();

        public RepositoryContext() :
            base(Utilities.DatabaseConnectionString, mappingSource)
        {
        }

        public RepositoryContext(string connection) :
            base(connection, mappingSource)
        {
        }

        public RepositoryContext(System.Data.IDbConnection connection) :
            base(connection, mappingSource)
        {
        }

        public RepositoryContext(string connection, System.Data.Linq.Mapping.MappingSource mappingSource) :
            base(connection, mappingSource)
        {
        }

        public RepositoryContext(System.Data.IDbConnection connection, System.Data.Linq.Mapping.MappingSource mappingSource) :
            base(connection, mappingSource)
        {
        }
    }
}